@import '../../styles/variables';
@import '../../styles/colours';
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';

.player-stats {
    display: flex;

    &.panel {
        margin: 0;
        border-radius: 0;
        padding: 5px;
        position: initial;
    }

    display: flex;
    align-items: center;
}

.state {
    height: 27px;
    padding-left: 5px;
    padding-right: 5px;
    border-right: solid 2px;
    display: flex;
    align-items: center;

    span {
        padding-right: 3px;
        padding-left: 3px;
    }

    &:last-of-type {
        border-right: none;
    }

    img {
        height: 125%;

        &:not(:last-child) {
            margin-right: 2px;
        }
    }

    &.first-player {
        margin: 0px 5px;
        padding: 5px;
        text-align: center;
        background: theme-color('primary');
        border-radius: 0.25rem;
        border: 1px solid rgba(128, 128, 128, 0.53);
    }
}

.stat-image {
    background-repeat: no-repeat;
    margin-left: 2px;
    width: 28px;
    height: 28px;
    background-size: 28px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;

    &.amber {
        background-image: url('~assets/img/amber.png');
    }

    &.chains {
        background-image: url('~assets/img/chains.png');
    }
    &.keyCost {
        background-image: url('~assets/img/keyCost.png');
    }
}

.stat-value {
    font-family: Bombardier, serif;
    font-size: 1.8rem;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
}

.active-player {
    background-color: rgba(theme-color('primary'), 0.4);

    .state svg {
        color: white;
    }
}

.chat-status {
    position: absolute;
    right: 10px;
}

.inactive-house {
    opacity: 0.2;
    filter: alpha(opacity=20);
}
